<extend file='resource/admin/base'/>
<block name="content">
	<!-- TAB NAVIGATION -->
	<ul class="nav nav-tabs" role="tablist">
		<li class="active"><a href="#">系统设置</a></li>
	</ul>
	<!-- TAB CONTENT -->
	<form action="" method="POST" class="form-horizontal" role="form">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">站点设置</h3>
			</div>
			<div class="panel-body">
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">网站名称</label>
					<div class="col-sm-10">
						<input type="text" name="webname" value="{{$field['webname']}}" class="form-control" >
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">网站描述</label>
					<div class="col-sm-10">
						<input type="text" name="description" value="{{$field['description']}}" class="form-control" id="" placeholder="">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">站长邮箱</label>
					<div class="col-sm-10">
						<input type="text" name="email" value="{{$field['email']}}" class="form-control" id="" placeholder="">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">客服电话</label>
					<div class="col-sm-10">
						<input type="text" name="tel" value="{{$field['tel']}}" class="form-control" id="" placeholder="">
					</div>
				</div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">备案号</label>
                    <div class="col-sm-10">
                        <input type="text" name="icp" value="{{$field['icp']}}" class="form-control" id="" placeholder="">
                    </div>
                </div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">设置前台加载模板</label>
					<div class="col-sm-10">
						<select name="template"  class="form-control">
							<?php foreach(glob('template/web/*') as $v){?>
								<option <?php if($field['template'] ==basename($v)){ ?>selected<?php } ?>  value="<?php echo basename($v); ?>">  <?php echo basename($v); ?>  </option>
							<?php } ?>

						</select>
					</div>
				</div>

			</div>
		</div>
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3 class="panel-title">文章列表数量配置</h3>
			</div>
			<div class="panel-body">
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">显示数量</label>
					<div class="col-sm-10">
						<input type="text" name="article_num" value="{{$field['article_num']}}" class="form-control" >
					</div>
				</div>

			</div>
		</div>
		<button type="submit" class="btn btn-primary">Submit</button>

	</form>


</block>


